<html>
 <head></head>
 <body>
<meta charset="UTF-8" /> 
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" /> 
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 
<link href="/resource/ui-framework/easyui-1.5.2/themes/metro/easyui-c5a176a3d4.css" rel="stylesheet" />
<link href="/resource/ui-framework/easyui-1.5.2/themes/icon-77a4ded0c8.css" rel="stylesheet" />
<link href="/resource/ui-framework/bootstrap/3.0.3/css/bootstrap-a067b6d831.min.css" rel="stylesheet" />
<link href="/resource/ui-framework/bootstrap-daterangepicker/css/daterangepicker-886dba62c4.css" rel="stylesheet" />
<link href="/resource/ui-framework/font-awesome/css/font-awesome-a81d284b37.css" rel="stylesheet" />
<link href="/resource/ui-framework/admin-lte/css/AdminLET-7d58b99a7e.css" rel="stylesheet" />
<link href="/static/css/base-dc47892812.css" rel="stylesheet" />
<link href="/resource/ui-framework/jason/searchbox/css/searchbox-398327fb84.css" rel="stylesheet" />
<link href="/resource/ui-framework/jason/pager/css/pager-f077f5e880.css" rel="stylesheet" />
<link href="/resource/ui-framework/jason/status/css/status-5f59ab3856.css" rel="stylesheet" />
<link href="/resource/ui-framework/jason/selector/css/selector-23060c280e.css" rel="stylesheet" />
<link href="/resource/ui-framework/jason/button/css/button-5ef10c798a.css" rel="stylesheet" />
<link href="/resource/ui-framework/jason/orderarrow/css/orderarrow-dcf8eba7d1.css" rel="stylesheet" />
<link href="/static/css/table-0e491bc98f.css" rel="stylesheet" />
<link href="/static/css/easyui-ext-372f902530.css" rel="stylesheet" />
<div class="easyui-window  panel-body-noborder window-body" id="window" data-options="modal:true,closed:true,minimizable:false,maximizable:false,collapsible:false,width:600,height:400" title="" style="width: 1491px; height: 493px;">
   <div class="container" style="width:95%;padding:0px;"> 
    <div class="row pd10"> 
     <div class="col-md-12"> 
      <div class="order-detail"> 
       <ul class="nav nav-tabs"> 
        <li class="active"  value="orderInfo"><a>订单信息</a></li>
        <li class="" value="msgLog"><a>短信日志</a></li> 
        <li class="" value="orderLog"> <a>订单日志</a> </li> 
       </ul> 
       <div class="tab-content"> 
        <div class="tab-pane active" style="padding:5px;">
        <div class="container" style="width:100%;padding:0px;">
        <form id="edit-form">    
        <div class="row"> 
        <div class="col-md-12"> 
        <?php $ext = unserialize($data['ext']); ?>
        <ul class="add-list filter-box"> 
         <li class="clearfix"> 
          {if condition="isset($ext['order'])"}
          <div class="items fl">
           {$ext['order']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 82px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="订单来源" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 80px;" type="text" name="order" value="{$data.order}" /></span> 
          </div>
          {/if}
          {if condition="isset($ext['number'])"}
          <div class="items fl" style="width:90px;">
           {$ext['number']}：
          </div> 
          <div class="fill-items fl">          
           <span class="textbox" style="width: 258px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="订单编号" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 256px;" type="text" name="number" value="{$data.number}" disabled="disabled" /></span> 
          </div>
          {/if}
          </li>
         <li class="clearfix"> 
           {if condition="isset($ext['area'])"}
          <div class="items fl">
           {$ext['area']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 82px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="游戏区" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 80px;" type="text" name="area" value="{$data.area}"/></span> 
          </div>
          {/if}
          {if condition="isset($ext['server'])"}
          <div class="items fl" style="width:90px;">
           {$ext['server']}：
          </div> 
          <div class="fill-items fl">          
           <span class="textbox" style="width: 258px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="服务器" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 256px;" type="text" name="server" value="{$data.server}"  /></span> 
          </div>
          {/if}
          </li>
         <li class="clearfix" style="margin:5px auto;">
          {if condition="isset($ext['content'])"}
          <div class="items fl">
           {$ext['content']}：
          </div> 
          <div class="fill-items fl" style="height:auto;"> 
           <textarea style="width:433px;height:50px;line-height:20px;padding:5px;" name="content">{$data.content}</textarea> 
          </div>
          {/if}
          </li> 
         <li class="clearfix"> 
          {if condition="isset($ext['price'])"}
          <div class="items fl">
           {$ext['price']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox numberbox" style="width: 150px;"><input  class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="接单价格(元)" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 500px;" type="text" name="price" value="{$data.price}" /></span> 
          </div>
          {/if}
          {if condition="isset($ext['time'])"}
          <div class="items fl">
           {$ext['time']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 32px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 30px;" type="text" name="time" value="<?php echo $data['time']/86400; ?>" /></span>&nbsp;天
          </div>
          {/if}
          </li> 
         <li class="clearfix" style="background-color:#F9E4C3;width:640px;"> 
          <div class="items fl">
           订单类型：
          </div> 
          <div class="fill-items fl"> 
           <input name="order_type" value="0" class="my-radio" {if condition="$data.order_type eq 0"} checked="checked" {/if} type="radio" />普通单 
           <input name="order_type" value="1" class="my-radio" {if condition="$data.order_type eq 1"} checked="checked" {/if} type="radio" />急速单
           <input name="order_type" value="2" class="my-radio" {if condition="$data.order_type eq 2"} checked="checked" {/if} type="radio" />炸单
           <a onclick="reset()" class="ml20 min-button">重算发单价</a> 
          </div>
         </li> 
         <li class="clearfix reset-div" style="background-color:#F9E4C3;width:640px;">
          {if condition="isset($ext['orderpeice'])"}
          <div class="items fl">
           {$ext['orderpeice']}：
          </div> 
          <div class="fill-items fl">          
           <span class="textbox numberbox" style="width: 150px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="接单价格(元)" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="orderpeice" value="{$data.orderpeice}" />
           </span> 
          </div>
          {/if}
          {if condition="isset($ext['ordertime'])"}
          <div class="items fl">
           {$ext['ordertime']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 65px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="请选择" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 63px;" type="text" name="ordertime" value="{$data['ordertime']/86400}" /></span>&nbsp;天           
          </div>
          {/if}
         </li> 
         <li class="clearfix reset-div" style="background-color:#F9E4C3;width:640px;padding-bottom:5px;">
          {if condition="isset($ext['ordermoney'])"} 
          <div class="items fl">
           {$ext['ordermoney']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox numberbox" style="width: 150px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="接单价格(元)" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="ordermoney" value="{$data.ordermoney}" /></span> 
          </div>
          {/if}
          {if condition="isset($ext['timemoney'])"} 
          <div class="items fl">
           {$ext['timemoney']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox numberbox" style="width: 151px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="接单价格(元)" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 149px; ime-mode: disabled;" type="text" name="timemoney" value="{$data.timemoney}" /></span>元 
          </div>
          {/if} 
         </li>
         <li class="clearfix"> 
          {if condition="isset($ext['login'])"} 
          <div class="items fl">
           {$ext['login']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 150px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="游戏帐号" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="login" value="{$data.login}"  /></span> 
          </div>
          {/if} 
          {if condition="isset($ext['password'])"} 
          <div class="items fl">
           {$ext['password']}：
          </div> 
          <div class="fill-items fl">
            <span class="textbox" style="width: 151px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="游戏密码" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 149px;" type="text" name="password" value="{$data.password}" /></span> 
          </div>
          {/if} 
         </li> 
         <li class="clearfix">
          {if condition="isset($ext['role'])"} 
          <div class="items fl">
           {$ext['role']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 150px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="角色" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="role" value="{$data.role}" /></span> 
          </div>
          {/if}
          <div class="items fl">
           是否加急：
          </div> 
          <div class="fill-items fl"> 
           <input name="is_urgent" value="1" class="my-radio" {if condition="$data.is_urgent ==1"} checked="checked/" {/if} type="radio" />加急 
           <input name="is_urgent" value="0" class="my-radio" {if condition="$data.is_urgent ==0"} checked="checked/" {/if} type="radio" />不加急 
          </div></li> 
         <li class="clearfix">
          {if condition="isset($ext['iphone'])"}
          <div class="items fl">
           {$ext['iphone']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 150px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="手机号" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="iphone" value="{$data.iphone}" /></span> 
          </div>
          {/if}
          {if condition="isset($ext['taobao'])"}
          <div class="items fl">
           {$ext['taobao']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox combo" style="width: 150px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="旺旺号" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="taobao" value="{$data.taobao}" /></span> 
          </div>
          {/if} 
         </li> 
         <li class="clearfix">
          {if condition="isset($ext['qq'])"}
          <div class="items fl">
           {$ext['qq']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 150px;"><input class="textbox-text validatebox-text" autocomplete="off" tabindex="" placeholder="QQ号" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="qq" value="{$data.qq}" /></span> 
          </div>
          {/if}
        </li> 
        </ul> 
        <ul class="add-list filter-box" id="extendFields" style="margin-top:-19px;width:650px;">
          <?php $new = ['auther1','auther2','auther3','auther4','auther5','auther6']; ?>  
         <li class="clearfix">
          {volist name="new" id="vo"}
          {if condition="isset($ext[$vo]) && $ext[$vo]['is_text'] == 0 "}
          <div class="items fl">
          {$ext[$vo]['name']}：
          </div> 
          <div class="fill-items fl">
           <span class="textbox" style="width: 150px;"><input class="textbox-text validatebox-text textbox-prompt" autocomplete="off" tabindex="" placeholder="" style="margin: 0px; padding-top: 0px; padding-bottom: 0px; height: 24px; line-height: 24px; width: 148px;" type="text" name="{$vo}" value="{$ext[$vo]['value']}" /></span> 
          </div>
          {/if}
         {/volist}
         </li> 
         <li class="clearfix" style="margin-bottom:5px;margin-top:2px;"> 
          {volist name="new" id="vo"} 
          {if condition="isset($ext[$vo]) && $ext[$vo]['is_text'] == 1 "} 
          <div class="items fl">
           {$ext[$vo]['name']}：
          </div> 
          <div class="fill-items fl" style="height:auto;"> 
           <textarea style="width:433px;height:50px;line-height:20px;padding:5px;" name="{$vo}">{$ext[$vo]['value']}</textarea> 
          </div>
          {/if}
          {/volist}
         </li>
        </ul> 
        </div> 
        </div>
        <input type="hidden" name="id" value="{$data.id}">
        </form>
        <div class="row"> 
        <div class="col-md-9"> 
        <div style="width:650px;text-align:center;">        
         <a class="btn-action" style="width:150px;" onclick="btnSubmit()">保存并关闭</a> 
         <!-- <a class="btn-action" style="width:150px;margin-left:10px;" id="btnSend">保存并发单</a>  -->
         <a class="btn-action" style="width:150px;margin-left:10px;" onclick="btnClose()">关闭</a> 
        </div> 
        </div> 
        </div> 
        </div> 
        </div> 
        <div class="tab-pane" style="padding:10px;"> 
            <div id="divSMSLog" class="logs"> 
                <div class="container" style="width:100%;"> 
                    <div class="row"> 
                        <div class="col-md-12"> 
                         <table class="order mt10"> 
                          <tbody>
                           <tr class="header"> 
                            <td>#</td> 
                            <td>接收号码</td> 
                            <td>发送内容</td> 
                            <td style="min-width:100px">发送时间</td> 
                            <td>操作人</td> 
                            <td style="min-width:100px">计费条数</td> 
                           </tr> 
                          </tbody>
                          <tbody id="mySms"> 
                           <tr class="project"> 
                            <td colspan="6">暂无短信</td> 
                           </tr> 
                          </tbody> 
                         </table> 
                        </div> 
                    </div> 
                </div> 
            </div> 
        </div> 
        <div class="tab-pane" style="padding:10px;"> 
            <div id="divLog" class="logs">
            {volist name="order_log" id="vi"}
            <div class="log"> 
            <div class="time">
             {:date("Y-m-d H:i:s",$vi['create_time'])}&nbsp;&nbsp;{$vi.name} 
            </div> 
            <div class="log-content">
             {$vi.msg}
            </div> 
            </div>
            {/volist}
            </div> 
        </div> 
       </div> 
      </div> 
     </div> 
    </div> 
   </div>
  </div>
 </body>
<script src="/resource/libs/jquery/jquery.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script type="text/javascript">
 var index = 0;
 $(".nav-tabs li").click(function(){
    index= $(this).index();    
    $(".nav-tabs li").removeClass('active');
    $(this).addClass('active');
    $(".tab-pane").removeClass('active');
    $(".tab-pane:eq("+index+")").addClass('active');
 });
 function reset(){
    $(".reset-div").find("input").val('');
 }
 function btnClose(){
    var index=parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
 }
 function btnSubmit(){
    var form = $("form").serialize();
    $.post("/index/index/edit",form,function(res){
      layer.msg(res.msg);
      if(res.code == 1){
          window.setTimeout(function(){
              window.parent.location.reload();
          },1000);
      }
    });
 }
</script>
</html>